from dataclasses import dataclass


@dataclass
class Range:
    min: float
    max: float

class RangeAdapter:
    def __init__(self, existing_range):
        self._range = existing_range

    @property
    def min(self):
        return self._range.min

    @property
    def max(self):
        return self._range.max

    def contains(self, value):
        return self.min <= value <= self.max

    def direction(self, value):
        if value > self._range.max: return "above"
        if value < self._range.min: return "below"
        if self.min <= value <= self.max: return "contains"
        raise ValueError("Value must out of range")


